<?php
/**
 * @filename auth.php 
 * @encoding UTF-8 
 * @author KangShuAn
 * @datetime 2014-11-7 10:36:23
 * @version 1.0
 * @Description 权限配置
 */
return array(
    1 => array(
        'name' => '用户管理',
        'controller' => 'user.*',
        'sub' => array(
            101 => array(
                'name' => '用户列表',
                'action' => 'user.list',
            ),
            102 => array(
                'name' => '添加用户',
                'action' => 'user.add,user.doadd',
            ),
            103 => array(
                'name' => '编辑用户',
                'action' => 'user.edit,user.doedit'
            ),
            104 => array(
                'name' => '删除用户',
                'action' => 'user.del'
            ),
            105 => array(
                'name' => '修改个人信息',
                'action' => 'user.change,user.dochange'
            ),
            106 => array(
                'name' => '修改密码',
                'action' => 'user.pwd,user.dopwd'
            ),
        ),
    ),
    2 => array(
        'name' => '用户组管理',
        'controller' => 'group.*,user.*',
        'sub' => array(
            201 => array(
                'name' => '用户组列表',
                'action' => 'group.list'
            ),
            202 => array(
                'name' => '添加用户组',
                'action' => 'group.add,group.doadd'
            ),
            203 => array(
                'name' => '编辑用户组',
                'action' => 'group.edit,group.doedit'
            ),
            204 => array(
                'name' => '删除用户组',
                'action' => 'group.del'
            ),
            205 => array(
                'name' => '分配权限',
                'action' => 'group.auth,group.doauth'
            ),
            206 => array(
                'name' => '管理员列表',
                'action' => 'user.list'
            ),
            207 => array(
                'name' => '添加用户',
                'action' => 'user.add,user.doadd'
            ),
            208 => array(
                'name' => '修改用户',
                'action' => 'user.edit,user.doedit'
            ),
            209 => array(
                'name' => '修改个人信息',
                'action' => 'user.change,user.dochange'
            ),
        )
    ),
    3 => array(
       'name' =>  '网点管理',
       'controller' => 'network.*',
       'sub' => array(
           301 => array(
               'name' => '银行列表',
               'action' => 'network.bank'
           ),
           302 => array(
               'name' => '添加银行',
               'action' => 'network.addbank,network.doaddbank'
           ),
           303 => array(
               'name' => '修改银行',
               'action' => 'network,editbank,network.doeditbank,network.dellogo,network.delbank'
           ),
           304 => array(
               'name' => '网点列表',
               'action' => 'network.list,network.getnet'
           ),
           305 => array(
               'name' => '添加网点',
               'action' => 'network.add,network.doadd,network.checknetwork'
           ),
           306 => array(
               'name' => '编辑网点',
               'action' => 'network.edit,network.doedit'
           ),
           307 => array(
               'name' => '删除网点',
               'action' => 'network.delete'
           ),
           308 => array(
               'name' => '网点信息导入',
               'action' => 'network.import,network.doimport,network.templateDown'
           ),
           309 => array(
               'name' => '网点信息导出',
               'action' => 'network.export,network.doexport'
           )
       ), 
    ),
    4 => array(
        'name' => '项目管理',
        'action' => 'project.*',
        'sub' => array(
            401 => array(
                'name' => '项目列表',
                'action' => 'project.list'
            ),
            402 => array(
                'name' => '添加项目',
                'action' => 'project.add,project.doadd'
            ),
            403 => array(
                'name' => '编辑项目',
                'action' => 'project.edit,project.doedit'
            ),
            404 => array(
                'name' => '删除项目',
                'action' => 'project.delete'
            ),
        )
    ),
    5 => array(
        'name' => '问卷管理',
        'controller' => 'question.*,netquestion.*',
        'sub' => array(
            501 => array(
                'name' => '问卷列表',
                'action' => 'question.list'
            ),
            502 => array(
                'name' => '添加问卷',
                'action' => 'question.add,question.doadd'
            ),
            503 => array(
                'name' => '修改基本信息',
                'action' => 'question.edit,question.doedit'
            ),
            504 => array(
                'name' => '发布问卷',
                'action' => 'question.release'
            ),
            505 => array(
                'name' => '删除问卷',
                'action' => 'question.delete'
            ),
            506 => array(
                'name' => '预览问卷模板',
                'action' => 'question.view'
            ),
            507 => array(
                'name' => '查看问卷内容',
                'action' => 'question.set'
            ),
            508 => array(
                'name' => '编辑问卷内容',
                'action' => 'question.subjectedit,question.addclassify,question.checkquestionnum,question.doset'
            ),
            509 => array(
                'name' => '删除问卷内容',
                'action' => 'question.subjectdelete'
            ),
            510 => array(
                'name' => '导入问卷模版',
                'action' => 'question.import,question.doimport'
            ),
            511 => array(
                'name' => '对标',
                'action' => 'question.answerimport,doanswerimport,question.templateanswerdown,question.templatebenchmarkdown,question.templatedown,question.benchmarkimport,question.dobenchmarkimport'
            ),
            512 => array(
                'name' => '问卷对标附件(上传、删除)',
                'action' => 'question.attachment,question.dottachment,netquestion.delattach,question.zip'
            ),
            513 => array(
                'name' => '网点问卷列表',
                'action' => 'question.netquestion'
            ),
            514 => array(
                'name' => '预览上传问卷',
                'action' => 'netquestion.list,netquestion.edit,netquestion.doedit,netquestion.preview,netquestion.attach,netquestion.downnq,benchmarkattachdown,netquestion.history,netquestion.historyattach'
            ),
            515 => array(
                'name' => '网点问卷删除',
                'action' => 'netquestion.del'
            ),
            515 => array(
                'name' => '修改网点对标信息',
                'action' => 'netquestion.answer,netquestion.doanswer,netquestion.basic,netquestion.dobasic'
            ),
            516 => array(
                'name' => '设置网点问卷完成',
                'action' => 'netquestion.setstatus'
            ),
            517 => array(
                'name' => '系统还分',
                'action' => 'netquestion.dohuanfen,netquestion.huanfen'
            ),
        ), 
    ),
    6 => array(
        'name' => '项目进度查询',
        'controller' => 'progress.*',
        'sub' => array(
            601 => array(
                'name' => '进度列表',
                'action' => 'progress.schedule,progress.projectquestion,progress.netquestion'
            ),
        ),
    ),
    7 => array(
        'name' => '排班管理',
        'controller' => 'staff.*',
        'sub' => array(
            701 => array(
                'name' => '排班网点',
                'action' => 'staff.network'
            ),
            702 => array(
                'name' => '开通网点',
                'action' => 'staff.open'
            ),
            703 => array(
                'name' => '网点员工',
                'action' => 'staff.list,staff.add,staff.doadd,staff.del'
            ),
        ),
    ),
    8 => array(
        'name' => '报备管理',
        'controller' => 'report.*',
        'sub' => array(
            801 => array(
                'name' => '报备列表',
                'action' => 'report.index,report.attachment,report.history'
            ),
            802 => array(
                'name' => '删除操作',
                'action' => 'report.del,report.delattach,report.delproject,report.exportproject'
            ),
        ),
    ),
);